09 / 17

What is a Cryptographic Hash? How does it differ from a regular hash?

Cryptographic vs Non-Cryptographic Hash

javascript
  1. 1

    Cryptographic hashes prioritize security properties.

  2. 2

    Non-cryptographic hashes prioritize speed and distribution.

  3. 3

    SHA-256 is an example of a cryptographic hash function.

  4. 4

    A Hash Table hash should not be assumed to be secure for password storage or digital signatures.

  5. 5

    Password storage requires a password-specific password hashing/KDF scheme such as Argon2, scrypt, or bcrypt rather than a fast general-purpose hash.

  6. 6

    Cryptographic hashes are generally more computationally expensive than ordinary Hash Table hashes.

Difficulty: 4/10

Follow-up Questions

  • What are collision resistance and preimage resistance?
  • Why should passwords not be stored using SHA-256 alone?
  • What is the difference between hashing and encryption?